import { prop, modelOptions } from '@typegoose/typegoose'
import { EntityModel } from '@midwayjs/typegoose'

type FlowData = {
  nodesData: any[]
  linesData: any[]
}

@modelOptions({ options: { allowMixed: 0 } })
@EntityModel()
export class WorkflowTemplate {
  @prop()
  public name: string

  @prop({ type: String })
  public formData: string

  @prop({ type: Object })
  public flowData: FlowData
}
